#ifndef __RNDIS_H__
#define __RNDIS_H__


#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QGridLayout>
#include <QString>
#include <QTimer>
#include <QList>
#include <QFile>
#include <QString>
#include <QNetworkInterface>
#include <QList>
#include <QFrame>
#include <QThread>
#include <QWSServer>

#include <QWidget>
#include <QDialog>
#include <QProcess>
#include <QVBoxLayout>

#include "jwidget/jdialog.h"




class rndis : public JDialog
{
	Q_OBJECT

public:
    explicit rndis(QWidget *parent = 0);
    ~rndis();
    void initLabel(void);
    void initRetBtn(void);
    int getRNDISIPAndMask(void);
    int getStatus(void);
    int startUDHCPD(void);
    int stopUDHCPD(void);


    QString parseString(const QString &srcStr, const QString &beginStr, const QString &endStr);

    QLabel *tipsLabel;
    QLabel *ubootVersionLabel;
    QLabel *kernelVersionLabel;
    QLabel *appVersionLabel;
    QLabel *libVersionLabel;

	QProcess *process;
    QFrame *pFrame;

    QPushButton *returnMainWindowBut;
private:
    QString m_ipaddr;
    QString m_netmask;
    QString m_status;
signals:
    void signal_finish_setting(int param);
public slots:
    void startSettings(void);
    void slot_return();
    void slot_finish_setting(int param);
	
};





#endif

